package cn.com.hhrcw.logs.service;

import cn.com.hhrcw.logs.entity.Logs;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Body;
import com.dtflys.forest.annotation.Post;

import java.util.List;

/**
 * http消息发送服务
 *
 * @author lixingxing
 */
@BaseRequest(baseURL = "${host}")
public interface ILogsService {

    /**
     * 上传日志
     *
     * @param logs
     * @return
     */
    @Post(url = "/log/v1/resource/logs", contentType = "application/json;charset=UTF-8", headers = {"X-API-KEY: ${appId}", "Accept: application/json"})
    Object uploadLogs(@Body List<Logs> logs);

}
